package com.dingwen.treasure.base.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 　CaptchaEnum: 验证码类型
 * 　@author dingwen
 * 　@date 2022/6/11
 *
 */
@Getter
@AllArgsConstructor
public enum CaptchaEnum implements BaseEnum<String>{

    /**
     * 线段干扰的验证码
     */
    LINE_CAPTCHA("LineCaptcha","线段干扰的验证码"),

    /**
     * 圆圈干扰的验证码
     */
    CIRCLE_CAPTCHA("CircleCaptcha","圆圈干扰的验证码"),

    /**
     * 扭曲干扰的验证码
     */
    SHEAR_CAPTCHA("ShearCaptcha","扭曲干扰的验证码");
    /**
     * code
     */
    private final String code;

    /**
     * 描述
     */
    @JsonValue
    private final String description;

    /**
     * 获取枚举类描述
     *
     * @return {@link String}
     */
    @Override
    public String getEnumDescription() {
        return "验证码类型";
    }
}
